//
//  UIView+CJPopupFrameAnimation.h
//  CJUIKitDemo
//
//  Created by ciyouzen on 15/11/12.
//  Copyright (c) 2015年 dvlproad. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CJPopupContainer/UIView+CJBasePopupInfo.h>

typedef NS_ENUM(NSUInteger, CJAnimationType) {
    //    MJPopupViewAnimationFade = 0,
    //    MJPopupViewAnimationSlideBottomTop = 1,
    //    MJPopupViewAnimationSlideBottomBottom,
    //    MJPopupViewAnimationSlideTopTop,
    //    MJPopupViewAnimationSlideTopBottom,
    //    MJPopupViewAnimationSlideLeftLeft,
    //    MJPopupViewAnimationSlideLeftRight,
    //    MJPopupViewAnimationSlideRightLeft,
    //    MJPopupViewAnimationSlideRightRight,
    CJAnimationTypeNone = 0,   //Directly
    CJAnimationTypeNormal,     //通过设置frame来实现
    CJAnimationTypeCATransform3D
};

NS_ASSUME_NONNULL_BEGIN

@interface UIView (CJPopupFrameAnimation) {
    
}

#pragma mark - Event
/**
 *  显示弹出视图
 */
- (void)cj_popupWithViewInfo:(CJBasePopupInfo *)popupInfo
                  isToBottom:(BOOL)isToBottom;

/**
 *  隐藏弹出视图
 */
- (void)cj_hidePopupView;

@end

NS_ASSUME_NONNULL_END
